<?php
include ("../lib/BLL/LopMonBLL.php");
include ("../lib/BLL/CanBoBLL.php");

$lopmonBLL=new LopMonBLL();
$canboBLL=new CanBoBLL();
$layout=1;

if(isset($_GET['cb'])){
    $layout=2;
    $ma_cb=$_GET['cb'];
    $hoten=$canboBLL->getHoten_Byma($ma_cb);
    $lich=$lopmonBLL->getLich_ByGiangVien($ma_cb);
    
    $smarty->assign('lich',$lich);    
    $smarty->assign('hoten',$hoten);
}else{
    $ds_cb_sumlich=$lopmonBLL->get_SumLich_ByGiangVien();
    $smarty->assign('ds_cb',$ds_cb_sumlich);
    $layout=1;
}

$smarty->assign('layout',$layout);
$smarty->display('daotao/lichday_giangvien.tpl');
?>